package com.ylfstu.Poly_.polydetail;

public class PolyDetail {
    public static void main(String[] args) {
        Animal animal = new Cat();
//        Cat cat = (Cat) animal;
        Cat cat = new Cat();
        cat.catchMouse();
        System.out.println(cat instanceof Cat);
    }
}
